// samsting : this file is auto create.

#include "Yundun/2015-04-16/DdosFlowGraphResponse.h"

namespace aliyun { namespace Yundun {

DdosFlowGraphResponse::DdosFlowGraphResponse() {
}

int64 DdosFlowGraphResponse::NormalFlow::Gettime(void) const {
  return time_;
}

int64 DdosFlowGraphResponse::NormalFlow::GetBitRecv(void) const {
  return BitRecv_;
}

int64 DdosFlowGraphResponse::NormalFlow::GetBitSend(void) const {
  return BitSend_;
}

int64 DdosFlowGraphResponse::NormalFlow::GetPktRecv(void) const {
  return PktRecv_;
}

int64 DdosFlowGraphResponse::NormalFlow::GetPktSend(void) const {
  return PktSend_;
}

int64 DdosFlowGraphResponse::TotalFlow::Gettime(void) const {
  return time_;
}

int64 DdosFlowGraphResponse::TotalFlow::GetBitRecv(void) const {
  return BitRecv_;
}

int64 DdosFlowGraphResponse::TotalFlow::GetPktRecv(void) const {
  return PktRecv_;
}

const std::vector<DdosFlowGraphResponse::NormalFlow>& DdosFlowGraphResponse::GetNormalFlows(void) const {
  return NormalFlows_;
}

const std::vector<DdosFlowGraphResponse::TotalFlow>& DdosFlowGraphResponse::GetTotalFlows(void) const {
  return TotalFlows_;
}

const char* DdosFlowGraphResponse::BaseKey(void) {
  return "DdosFlowGraphResponse";
}

void DdosFlowGraphResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int NormalFlows__length = 0;
  UnmarshallerInt(NormalFlows__length, response_map, "DdosFlowGraphResponse.NormalFlows.Length");
  if(NormalFlows__length >= 0) {
    NormalFlows_.resize(NormalFlows__length);
    for(int i1 = 0; i1 < NormalFlows__length; i1++) {
      UnmarshallerInt64(NormalFlows_[i1].time_, response_map, "DdosFlowGraphResponse.NormalFlows["+string_ValueOfInt(i1)+"].time");
      UnmarshallerInt64(NormalFlows_[i1].BitRecv_, response_map, "DdosFlowGraphResponse.NormalFlows["+string_ValueOfInt(i1)+"].BitRecv");
      UnmarshallerInt64(NormalFlows_[i1].BitSend_, response_map, "DdosFlowGraphResponse.NormalFlows["+string_ValueOfInt(i1)+"].BitSend");
      UnmarshallerInt64(NormalFlows_[i1].PktRecv_, response_map, "DdosFlowGraphResponse.NormalFlows["+string_ValueOfInt(i1)+"].PktRecv");
      UnmarshallerInt64(NormalFlows_[i1].PktSend_, response_map, "DdosFlowGraphResponse.NormalFlows["+string_ValueOfInt(i1)+"].PktSend");
    } // for(int i1 = 0; i1 < NormalFlows__length; i1++) {
  } // if(NormalFlows__length >= 0) {

  int TotalFlows__length = 0;
  UnmarshallerInt(TotalFlows__length, response_map, "DdosFlowGraphResponse.TotalFlows.Length");
  if(TotalFlows__length >= 0) {
    TotalFlows_.resize(TotalFlows__length);
    for(int i1 = 0; i1 < TotalFlows__length; i1++) {
      UnmarshallerInt64(TotalFlows_[i1].time_, response_map, "DdosFlowGraphResponse.TotalFlows["+string_ValueOfInt(i1)+"].time");
      UnmarshallerInt64(TotalFlows_[i1].BitRecv_, response_map, "DdosFlowGraphResponse.TotalFlows["+string_ValueOfInt(i1)+"].BitRecv");
      UnmarshallerInt64(TotalFlows_[i1].PktRecv_, response_map, "DdosFlowGraphResponse.TotalFlows["+string_ValueOfInt(i1)+"].PktRecv");
    } // for(int i1 = 0; i1 < TotalFlows__length; i1++) {
  } // if(TotalFlows__length >= 0) {

}


} } // namespace aliyun { namespace Yundun {

// end of file 
